<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>

<html>
<head>
    <title>经营业务经理审查</title>
    <link href="/bootstrap/css/bootstrap.css" rel="stylesheet">
    <script src="/js/jquery.js"></script>
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("[name='showImage']").click(function () {
                var processInstanceId = $(this).attr("processInstanceId");
                $("#taskImageLocation").html("<img src=/task/image/"+processInstanceId+">");
            });
        });
    </script>
</head>

<body style="padding-top: 0;">
    <form action="/workflow/completeTaskManagerApprove" method="post">
    <input type="hidden" name="taskId" value="${taskId}">
    <input type="hidden" name="id" value="${businessInfo.id}">
        <table class="table table-striped">
          <tr>
                <td>业务名称:</td>
                <td><input type="text" name="businessName" value="${businessInfo.businessName }" class="form-control"/></td>
            </tr>
            <tr>
                <td>负责人:</td>
                <td>
                    <select name="resp_person_id" class="form-control">
                    <c:forEach items="${userList}" var="user">
                        <option value="${user.id}" 
                        <c:if test="${user.id == businessInfo.resp_person_id}">
                           selected="selected"
                        </c:if>
                        >${user.firstName}</option>
                    </c:forEach>
                    </select>
                </td>
            </tr>
            <tr>
                <td>验收人:</td>
                <td>
                    <select name="rece_person_id" class="form-control">
                    <c:forEach items="${userList}" var="user">
                        <option value="${user.id}" 
                        <c:if test="${user.id == businessInfo.rece_person_id}">
                           selected="selected"
                        </c:if> >${user.firstName}</option>
                        
                    </c:forEach>
                    </select>
                </td>
            </tr>
            <tr>
                <td>开始时间:</td>
                <td>
                
                    <input type="text" name="startTime" value="<fmt:formatDate value="${businessInfo.startTime }" type="date"/>" class="form-control" time="true" readonly/></td>
            </tr>
            <tr>
                <td>结束时间:</td>
                <td><input type="text" name="endTime" value="<fmt:formatDate value="${businessInfo.endTime }" type="date"/>" class="form-control" time="true" readonly/></td>
            </tr>
            <tr>
                <td>审批:</td>
                <td>
                    <select name="deptLeaderPass" class="form-control">
                        <option value="true">同意</option>
                        <option value="false">不同意</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>审批意见：</td>
                <td>
                    <textarea name="rejectReason" class="form-control" rows="3">${businessInfo.rejectReason}</textarea>
                </td>
            </tr>

        </table>
    </form>
</body>
</html>
